package com.my.bean;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 每日采购材料
 * </p>
 *
 * @author 闫亚茹
 * @since 2018-08-30
 */
@TableName("purchasing")
public class Purchasing extends Model<Purchasing> {

    private static final long serialVersionUID = 1L;

	private Long id;
    /**
     * 办公用品
     */
	private String office;
    /**
     * 厨房食材
     */
	private String kitchen;
    /**
     * 日常用品
     */
	private String supplies;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Long createTime;
    /**
     * 采购人
     */
	private String persion;
    /**
     * 价格
     */
	@TableField("rice")
	private int price;
	/**
	 * 类型 1 办公 2食材 3日常用品
	 */
	private int type;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getOffice() {
		return office;
	}

	public void setOffice(String office) {
		this.office = office;
	}

	public String getKitchen() {
		return kitchen;
	}

	public void setKitchen(String kitchen) {
		this.kitchen = kitchen;
	}

	public String getSupplies() {
		return supplies;
	}

	public void setSupplies(String supplies) {
		this.supplies = supplies;
	}

	public Long getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Long createTime) {
		this.createTime = createTime;
	}

	public String getPersion() {
		return persion;
	}

	public void setPersion(String persion) {
		this.persion = persion;
	}


	public int getPrice() {
		return price;
	}

	public void setPrice(int price) {
		this.price = price;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Purchasing{" +
				"id=" + id +
				", office='" + office + '\'' +
				", kitchen='" + kitchen + '\'' +
				", supplies='" + supplies + '\'' +
				", createTime=" + createTime +
				", persion='" + persion + '\'' +
				", price=" + price +
				", type=" + type +
				'}';
	}
}
